<?php

class Acl_Role_Mgr 
{
	public static function factory ($roleName, $user_id = NULL) 
	{
		if (in_array($roleName, array('guest', 'member', 'admin', 'shop')))
			return new Acl_Role_General($roleName, $user_id);
		else
			return new Acl_Role_General($roleName);
	}
}
